//导入路由规则对应的组件对象
import home from './components/home.vue'
import car from './components/shopcar/car.vue'
import newslist from './components/news/newslist.vue'
import newsinfo from './components/news/newsinfo.vue'
import photolist from './components/photo/photolist.vue'
import photoinfo from './components/photo/photoinfo.vue'
import goodslist from './components/goods/goodslist.vue'
import goodsinfo from './components/goods/goodsinfo.vue'
import moviecat from './components/video/Moviecat.vue'
import goodsdesc from './components/goods/goodsdesc.vue'
import goodscomment from './components/goods/goodscomment.vue'


export default {
    linkActiveClass:'mui-active',  //改变路由激活时的class名称
    routes:[
        {path:'/',redirect:'/home'},// 设置当服务器启动的时候默认进入 /home中
        {path:'/home',component:home},
        {path:'/news/newslist',component:newslist},
        {path:'/shopcar/car',component:car},
        {path:'/news/newsinfo/:id',component:newsinfo},
        {path:'/photo/photolist',component:photolist},
        {path:'/photo/photoinfo/:id',component:photoinfo},
        {path:'/goods/goodslist',component:goodslist},
        {path:'/goods/goodsinfo/:id',component:goodsinfo},
        {path:'/video/Moviecat/',component:moviecat},
        {path:'/goods/goodsdesc/:id',component:goodsdesc},
        {path:'/goods/goodscomment/:id',component:goodscomment},
    ]
}